package service;

import dao.UserDao;
import entity.User;

public class UserService {
    private UserDao userDao = new UserDao();

    public User login(String account, String password) {
        return userDao.login(account, password);
    }

    public boolean register(User user) {
        return userDao.register(user);
    }
}
